package com.coocaa.ops.admin.base.util;

import com.coocaa.ops.admin.v1.dict.util.DictUtil;
import com.coocaa.ops.common.core.base.model.BaseModel;
import lombok.experimental.UtilityClass;

import javax.servlet.http.HttpServletRequest;

/**
 * @author bijiahao
 * @description 系统权限分页查询工具类
 * @date 2020/7/7 16:59
 */
@UtilityClass
public class SysAuthPageQueryUtil {
    /**
     * 处理设置查询参数
     *
     * @param request
     * @param model
     * @param businessType
     */
    public static void handleSetQueryParams(HttpServletRequest request, BaseModel model, Integer businessType) {
        //设置业务分类
        model.setBusinessTypeList(DictUtil.getDicts(request, businessType));
    }
}
